package kr.hkit.powerjava.chapter09.Programming;

public class BankAccount {

	private String owner;
	private int accountNumber;
	private int balance;
	private double interest;
	
	
	public BankAccount() {	}

	public BankAccount(String owner, int accountNumber, int balance) {
		super();
		this.owner = owner;
		this.accountNumber = accountNumber;
		this.balance = balance;
	}

	public BankAccount(String owner, int accountNumber, int balance,
			double interest) {
		this.owner = owner;
		this.accountNumber = accountNumber;
		this.balance = balance;
		this.interest = interest;
	}

	@Override
	public String toString() {
		return "BankAccount [owner=" + owner + ", accountNumber="
				+ accountNumber + ", balance=" + balance + ", interest="
				+ interest + "]";
	}
	
	
}
